import request from '@/utils/request'

export function getAll() {
  return request({
    url: `/api/example/gpsInfo/getAll`,
    method: 'GET',
  })
}

export function getAllGpsInfo(userId,startTime,endTime) {
  return request({
    url: `/api/example/gpsInfo/getAllGpsInfo?userId=${userId}&startTime=${startTime}&endTime=${endTime}`,
    method: 'GET',
  })
}

export function getGpsInfoByUserId(page) {
  return request({
    url: `/api/example/gpsInfo/getListByPerson?currentPage=${page.currentPage}&pageSize=${page.pageSize}&startTime=${page.startTime}&endTime=${page.endTime}&name=${page.name}`,
    method: 'POST',
  })
}

